package com.study.happystudy.mapper;

import com.study.happystudy.po.Emotion;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface EmotionMapper {
    int insert(int userId, String emotion);
    List<Emotion> selectByUserId(int userId);
    void updateEmotion(String emotion,int userId,String date);
    int isExist(int userId,String date);
   List<Emotion> selectByUserIdAndMonth(int userId,String yearMonth);
}
